<style>
    legend {
        padding-bottom: 5px;
        font-size: 14px;
        font-weight: 600;
        padding-left: 10px;
        padding-right: 15px;
        /*color: #0a5ba6;*/
        margin-bottom: 0;
        margin-top: 8px;
        /*background: #f5f5f5;*/
    }

    legend .label {
        font-size: 14px;
    }

    .ebill {
        height: calc(100vh - 124px) !important;
        overflow: auto;
    }

    .content {
        padding-top: 8px;
        background: #ecf0f5;
    }

    .fastflow-worker {
        padding: 25px 15px 0 15px;
        border-top: 1px solid #cdcdcd;
        /*background: #f5f5f5;*/
    }

    body.is-dialog {
        background: #ecf0f5 !important;
    }

    div ::-webkit-scrollbar {
        /*滚动条整体*/
        width: 12px;
        height: 8px;
        border-radius: 5px;
    }

    div ::-webkit-scrollbar-track {
        /*滚动条轨道*/
        background: #e3e3e3;
        border-radius: 2px;
    }

    div ::-webkit-scrollbar-thumb {
        /*滚动条里面的滑块*/
        background: #d1d1d1;
        border-radius: 2px;
    }

    div ::-webkit-scrollbar-thumb:hover {
        /*滚动条鼠标事件，鼠标放上去出现的事件*/
        background: #a8a8a8;
    }

    div ::-webkit-scrollbar-corner {
        /*滚动条边角*/
        background: #a8a8a8;
    }

    .btn-group {
        display: flex;
        position: relative;
        vertical-align: middle;
        line-height: 32px;
    }

    .btn-group .btn {
        margin-right: 6px;
    }

    .empty-hint {
        width: 100%;
        height: 34px;
        text-align: center;
        position: absolute;
        text-align: center;
        top: calc(50vh - 17px);
        font-size: 16pt;
        font-family: '黑体';
        color: #c2c2c2;
    }

    .stamp-toolbar {
        position: absolute;
        bottom: -30px;
    }

    .stamp-list {
        height: calc(100vh - 124px) !important;
        overflow: auto;
        border: 1px solid #e9e9e9;
    }

    .ebill {
        border: 1px solid #e0e0e0;
    }

    .ebill, .ebill-content {
        position: relative;
        margin: auto;
    }
    .ebill-title{
        vertical-align: middle;
        margin-right: 12px;
    }

</style>
<div class="content" style="background: white;">
    <legend>
        <span class="ebill-title">{$signature.ebill_copy.title}</span>
        <a href="{:url('/fastflow/flow/flow/detail',['bill'=>$signature.bill,'bill_id'=>$signature.bill_id])}" class="btn btn-sm btn-warning btn-dialog" title="查看单据详情" data-area='["95%","95%"]'><i class="fa fa-eye"></i> 单据ID：{$signature.bill_id}</a>
        <a href="javascript:;" id="ebill-print" class="btn btn-sm btn-success"> <i class="fa fa-print" style="margin-right: 4px"></i> 打印电子表单</a>
        <a href="{$signature['pdf_file']}" download="{$bill}({$signature['bill_id']})电子表单.pdf" class="btn btn-sm btn-info"> <i class="fa fa-download" style="margin-right: 4px"></i> 下载PDF</a>
        {if $signature.status == 0}
        <span class="label label-warning pull-right"><i class="fa fa-exclamation-circle"></i> 正在签章</span>
        {else /}
        <span class="label label-success pull-right"><i class="fa fa-check-circle"></i> 已完成</span>
        {/if}
    </legend>

    <div class="ebill" id="ebill">
        <!--ebillPrintStart-->
        <div class="ebill-content" id="ebill-content" data-title="{$signature.ebill_copy.title}" style="width: {$signature.ebill_width}px;height:{$signature.ebill_height}px;background-image: url('{$signature.ebill}')"></div>
        <!--ebillPrintEnd-->
    </div>

</div>


